package com.rz.core.resp;

/**
 * @author: Rui.Zhou
 * @date: 2018/7/17
 * @Description:
 */
public enum  RespEnum {

    UNKOWN_ERROR(-1,"后台服务错误"),
    SMS_ERROR(1001,"验证码错误或失效"),
    REG_ERROR(1002,"注册管理员账号失败"),
    USERNAME_ERROR(1003,"用户名不存在"),
    USERNAME_PWD_ERROR(1004,"用户名或密码不正确"),
    USERNAME_EXIST(1005,"手机号已注册");

    private Integer code;
    private String msg;

    RespEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}